﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010AF RID: 4271
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneCastSkillCostMpScRsp : IMessage<SceneCastSkillCostMpScRsp>, IMessage, IEquatable<SceneCastSkillCostMpScRsp>, IDeepCloneable<SceneCastSkillCostMpScRsp>, IBufferMessage
	{
		// Token: 0x170035F0 RID: 13808
		// (get) Token: 0x0600BEDA RID: 48858 RVA: 0x00203049 File Offset: 0x00201249
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneCastSkillCostMpScRsp> Parser
		{
			get
			{
				return SceneCastSkillCostMpScRsp._parser;
			}
		}

		// Token: 0x170035F1 RID: 13809
		// (get) Token: 0x0600BEDB RID: 48859 RVA: 0x00203050 File Offset: 0x00201250
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneCastSkillCostMpScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170035F2 RID: 13810
		// (get) Token: 0x0600BEDC RID: 48860 RVA: 0x00203062 File Offset: 0x00201262
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneCastSkillCostMpScRsp.Descriptor;
			}
		}

		// Token: 0x0600BEDD RID: 48861 RVA: 0x00203069 File Offset: 0x00201269
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCostMpScRsp()
		{
		}

		// Token: 0x0600BEDE RID: 48862 RVA: 0x00203071 File Offset: 0x00201271
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCostMpScRsp(SceneCastSkillCostMpScRsp other) : this()
		{
			this.castEntityId_ = other.castEntityId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BEDF RID: 48863 RVA: 0x002030A2 File Offset: 0x002012A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCostMpScRsp Clone()
		{
			return new SceneCastSkillCostMpScRsp(this);
		}

		// Token: 0x170035F3 RID: 13811
		// (get) Token: 0x0600BEE0 RID: 48864 RVA: 0x002030AA File Offset: 0x002012AA
		// (set) Token: 0x0600BEE1 RID: 48865 RVA: 0x002030B2 File Offset: 0x002012B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CastEntityId
		{
			get
			{
				return this.castEntityId_;
			}
			set
			{
				this.castEntityId_ = value;
			}
		}

		// Token: 0x170035F4 RID: 13812
		// (get) Token: 0x0600BEE2 RID: 48866 RVA: 0x002030BB File Offset: 0x002012BB
		// (set) Token: 0x0600BEE3 RID: 48867 RVA: 0x002030C3 File Offset: 0x002012C3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BEE4 RID: 48868 RVA: 0x002030CC File Offset: 0x002012CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneCastSkillCostMpScRsp);
		}

		// Token: 0x0600BEE5 RID: 48869 RVA: 0x002030DA File Offset: 0x002012DA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneCastSkillCostMpScRsp other)
		{
			return other != null && (other == this || (this.CastEntityId == other.CastEntityId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BEE6 RID: 48870 RVA: 0x00203118 File Offset: 0x00201318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CastEntityId != 0U)
			{
				num ^= this.CastEntityId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BEE7 RID: 48871 RVA: 0x00203170 File Offset: 0x00201370
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BEE8 RID: 48872 RVA: 0x00203178 File Offset: 0x00201378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BEE9 RID: 48873 RVA: 0x00203184 File Offset: 0x00201384
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CastEntityId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.CastEntityId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BEEA RID: 48874 RVA: 0x002031E0 File Offset: 0x002013E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CastEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CastEntityId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BEEB RID: 48875 RVA: 0x00203238 File Offset: 0x00201438
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneCastSkillCostMpScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CastEntityId != 0U)
			{
				this.CastEntityId = other.CastEntityId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BEEC RID: 48876 RVA: 0x00203288 File Offset: 0x00201488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BEED RID: 48877 RVA: 0x00203294 File Offset: 0x00201494
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 120U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.CastEntityId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004CD9 RID: 19673
		private static readonly MessageParser<SceneCastSkillCostMpScRsp> _parser = new MessageParser<SceneCastSkillCostMpScRsp>(() => new SceneCastSkillCostMpScRsp());

		// Token: 0x04004CDA RID: 19674
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004CDB RID: 19675
		public const int CastEntityIdFieldNumber = 3;

		// Token: 0x04004CDC RID: 19676
		private uint castEntityId_;

		// Token: 0x04004CDD RID: 19677
		public const int RetcodeFieldNumber = 15;

		// Token: 0x04004CDE RID: 19678
		private uint retcode_;
	}
}
